package com.hgd.impl;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.hgd.ORM.Task;
import com.hgd.ORM.TaskData;

public class Test {
	public static void main(String[] args) throws ParseException {
		AgencyImpl agencyImpl = new AgencyImpl();
		
		Date currentTime = new Date();
    	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");		
		Date ct = dateFormat.parse(currentTime.toLocaleString());
//		agencyImpl.getTaskData(114, "111", ct);
		Task task = new Task();
		task.settId(115);
		List<TaskData> dataList = new ArrayList<TaskData>();
		for (int i = 0; i < 10; i++) {
			TaskData taskData = new TaskData();
			taskData.setDataValue("123");
			taskData.setGainTime(ct);
			taskData.setTask(task);
			dataList.add(taskData);
		}
		//agencyImpl.returnAllData(dataList);
	}
}
